import { segment } from "oicq";
import fetch from "node-fetch";
import schedule from "node-schedule";
//项目路径
const _path = process.cwd();

async function sleep(ms) {
  return new Promise((resolve) => setTimeout(resolve, ms));
}


schedule.scheduleJob("0 0 8 * * ?",async ()=>{    //早报
  let Whitelist=[682016786,815556911,231586751,730671682]  //要早报的群
  let url = "https://api.03c3.cn/zb/"
  let msg =[segment.image(url)]
  
  for(let key of Whitelist){
      
  
   await Bot.pickGroup(key * 1).sendMsg(msg);

   await sleep(10000);
  }
})